﻿@model FTBS.Models.Entities.Concert.PaymentConcertEntity

@{
    ViewBag.Title = "Tùy chỉnh thanh toán";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<legend style="margin-top: 10px">THÔNG TIN CHI TIẾT THANH TOÁN</legend>
@using (Html.BeginForm("PaymentInfo", "TicketCart", null, FormMethod.Post,
                              new { enctype = "multipart/form-data" }))
{
    @Html.HiddenFor(model => Model.PaymentId)
    @Html.HiddenFor(model => Model.IsDeleted)
    @Html.HiddenFor(model => Model.CartId)
    @Html.HiddenFor(model => Model.ChargeMoney)
    @Html.HiddenFor(model => Model.ConfirmPerson)
    @Html.HiddenFor(model => model.IsComplete)
    @Html.HiddenFor(model => Model.StatusOfPayment)
    @Html.HiddenFor(model => Model.ActualMoney)
    @Html.HiddenFor(model => Model.PaidTime)
    @Html.HiddenFor(model => Model.FullName)
    @Html.HiddenFor(model => Model.BankAccount)
    @Html.HiddenFor(model => Model.PhoneNumber)
    @Html.HiddenFor(model => Model.ConfirmPerson)
    @Html.HiddenFor(model => Model.Email)
    <table class="table striped bordered hovered">
        <tr>
            <td>Mã đặt vé
            </td>
            <td colspan="3">
                @Html.DisplayFor(model => Model.CartId)
            </td>
        </tr>
        <tr>
            <td>Số tiền cần trả (VNĐ)
            </td>
            <td>
                @{ var chargeMoney = ((double)Model.ChargeMoney).ToString(@"0,000");}
                @chargeMoney
            </td>
            <td>Số tiền đã trả (VNĐ)
            </td>
            <td>
                @{ 
                   var actualMoney = ((double)Model.ActualMoney).ToString(@"0,000");
                }
                @actualMoney
            </td>
        </tr>
        <tr>
            <td>Thời gian thanh toán
            </td>
            <td>
                 @{ 
    var time = ((DateTime)Model.PaidTime).ToString("dd/MM/yyyy");
                }
                @time
            </td>
            <td>Người thanh toán
            </td>
            <td>
                @Html.DisplayFor(model => Model.FullName)
            </td>
        </tr>
        <tr>
            <td>Tài khoản ngân hàng
            </td>
            <td>
                @Html.DisplayFor(model => Model.BankAccount)
            </td>
            <td>Số điện thoại
            </td>
            <td>
                @Html.DisplayFor(model => Model.PhoneNumber)
            </td>
        </tr>
        <tr>
            <td>Email
            </td>
            <td>
                @Html.DisplayFor(model => Model.Email)
            </td>
            <td>Tình trạng thanh toán
            </td>
            <td>
                @Html.DisplayFor(model => Model.StatusOfPayment)
            </td>
        </tr>
        <tr>
            <td>Người xác nhận
            </td>
            <td colspan="3">
                @Html.DisplayFor(model => Model.ConfirmPerson)
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <div>
                    <input class="button info" type="submit" value="Lưu" style="width: 77px" />
                    <button class="button danger" style="float: right">
                        @Html.ActionLink("Quay Lại", "PaymentDetail", new { id = Model.CartId })
                    </button>
                </div>
            </td>
        </tr>
    </table>
}
